//package cn.topevery.garden.framework.util;
//
//import com.github.dozermapper.core.DozerBeanMapper;
//
//import java.lang.ref.WeakReference;
//
//public class MapperUtil {
//
//    public static void copyProperties(final Object sources, final Object destination) {
//        WeakReference weakReference = new WeakReference(new DozerBeanMapper());
//        DozerBeanMapper mapper = (DozerBeanMapper) weakReference.get();
////        mapper.addMapping(new BeanMappingBuilder() {            @Override
////        protected void configure() {
////            mapping(sources.getClass(), destination.getClass(), mapNull(false), mapEmptyString(false));
////        }
////        });
////        mapper.map(sources, destination);
////        mapper.destroy();
////        weakReference.clear();
//    }
//}
